import java.util.Scanner;

public class zuoye {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个四位数");
        int age = sc.nextInt();
        int ge = age%10;
        int shi = age/10%10;
        int bai = age/100%10;
        int qian = age/1000;
        System.out.println("整数"+age+"个位数为："+ge+"，十位数为："+shi+"，百位数为："+bai+"，千位数为："+qian);


        Scanner name = new Scanner(System.in);
        System.out.println("请输入华氏度");
        double hua = name.nextInt();
        double q = ((hua-32)*5/9);
        System.out.println("摄氏度为："+q);
        System.out.println("请输入摄氏度");
        double she = name.nextInt();
        double w = (she*9/5+32);
        System.out.println("华氏度为："+w);




    }
}
